<x-filament-panels::page>
    @if($projects_count > 0)
    <div>
        我的项目：
        @foreach($projects as $project)
            <a href="/user/components/{{$project->id}}/unsaved" class="bg-gray-800 text-white hover:bg-gray-700 py-4 px-6 rounded-xl shadow-md transition duration-200">{{ $project->title }}</a>
        @endforeach
    </div>
    @endif

    @if($project_id === null)
        @livewire('component-list', ['project_id' => $project_id, 'save_status' => $save_status])
    @endif

    @if($save_status === 'unsaved')
        @livewire('component-list', ['project_id' => $project_id, 'save_status' => $save_status])
    @endif

    @if($save_status === 'saved')
        @livewire('saved-components', ['project_id' => $project_id, 'save_status' => $save_status])
    @endif

</x-filament-panels::page>
